/* 
 * File:   ValueParser.h
 * Author: RedEyedKiller
 *
 * Created on 16 Οκτώβριος 2011, 5:52 μμ
 */

#ifndef VALUEPARSER_H
#define	VALUEPARSER_H

#include "AbstractParser.h"

#include <string>
#include "tinyxml.h"

namespace FileParser
{

class ValueParser : public AbstractParser
{
public:

    ValueParser()
    {
    }
    
    /**
     * Parses an xml root and checks if it has Include tags.
     * @param root
     * @return 
     */
    bool ParseIncludeList(TiXML::TiXmlElement* root);
private:
    
    /**
     * Parses a value file and loads its data into valueRepository.
     * @param file the name of the file without the .smt
     * @param fileExt the .smt
     * @return 
     */
    bool ParseFile(const std::string& file, const std::string& fileExt);
};

};

#endif	/* VALUEPARSER_H */

